<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<ui:composition template="../template/layout.xhtml" xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:param name="pageHeaderTitle" value="#{msg['menu']}" />
<ui:param name="pageTitle" value="#{msg['menu']}" />
	<ui:define name="content">		
		<div id="menu" style="position: absolute">
		<h:panelGroup rendered="#{request.isUserInRole('Admin')}">
			<br /> <br />
			<h:outputLink value="../admin/editUser.xhtml" >#{msg['create.user']}</h:outputLink>
			<br /> <br />
			<h:outputLink value="../admin/viewUserList.xhtml" >#{msg['view.user.list']}</h:outputLink>
		</h:panelGroup>
		<h:panelGroup rendered="#{request.isUserInRole('Doctor') or request.isUserInRole('Receptionist')}">
			<br /> <br />
			<h:outputLink value="../rec/findClient.xhtml">#{msg['find.client']}</h:outputLink>
		</h:panelGroup>
		<h:panelGroup rendered="#{request.isUserInRole('Doctor') and not request.isUserInRole('Receptionist')}">
			<br /> <br />
			<h:outputLink value="../doc/viewTreatmentRequestList.xhtml">#{msg['treatment.requests']}</h:outputLink>
		</h:panelGroup>
		<h:panelGroup rendered="#{request.isUserInRole('Doctor')}">			
			<br /> <br />
			<h:outputLink value="../doc/editDoctorProfile.xhtml">#{msg['edit.profile']}</h:outputLink>
		</h:panelGroup>
		<h:panelGroup rendered="#{request.isUserInRole('Receptionist')}">
			<br /> <br />
			<h:outputLink value="../rec/viewTreatmentRequestList.xhtml">#{msg['treatment.requests']}</h:outputLink>
			<br /> <br />
			<h:outputLink value="../rec/createClientProfile.xhtml">#{msg['create.client.card']}</h:outputLink>
			<br /> <br />
			<h:outputLink value="../rec/findDoctor.xhtml">#{msg['doctor.list']}</h:outputLink>									
		</h:panelGroup>
		</div>
		<br /> <br />		
		<div id="menu_info" style="position: absolute;margin-top: 450px;margin-left: 365px;">
			<p:messages />
		</div>		
		<h:graphicImage value="/resources/images/logo.png" width="302" height="266" style="margin-top: 80px; margin-left: 600px" />
	
	</ui:define>
<ui:define name="footer">	
	<ui:param name="navBean" value="#{loginBean}" />
	<ui:param name="navAction" value="logout" />
	<ui:param name="navTitle" value="#{msg['logout']}" />
	<ui:include src="/template/footer_bean_navigation.xhtml" />
</ui:define>
</ui:composition>
</html>